#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <list>
#include <algorithm>
using namespace std;

int main() {
    int n;
    cin >> n;

    if (n >= 1 && n < 5)
        cout << "few";
    else if (n < 10)
        cout << "several";
    else if (n < 20)
        cout << "pack";
    else if (n < 50)
        cout << "lots";
    else if (n < 100)
        cout << "horde";
    else if (n < 250)
        cout << "throng";
    else if (n < 500)
        cout << "swarm";
    else if (n < 1000)
        cout << "zounds";
    else
        cout << "legion";
    cout << endl;

    return 0;
}
